//
//  UnlimitedHorizontalScrollView.h
//  baovn
//
//  Created by Tai Le on 11/20/14.
//  Copyright (c) 2014. All rights reserved.
//

#import <UIKit/UIKit.h>

@class UnlimitedHorizaontalItemView;
@protocol UnlimitedHorizontalScrollViewDelegate;
@interface UnlimitedHorizontalScrollView : UIView<UIScrollViewDelegate>
{
    NSMutableArray *_visibleItems;
}

@property (nonatomic, strong) UIScrollView *scrollView;
@property (nonatomic, assign) NSInteger selectedIndex;

@property (nonatomic, weak) id<UnlimitedHorizontalScrollViewDelegate> delegate;

- (void)reloadData;

@end

@protocol UnlimitedHorizontalScrollViewDelegate <NSObject>

- (UnlimitedHorizaontalItemView *)unlimitedHorizontalScrollView:(UnlimitedHorizontalScrollView*)tableView cellForItemAtIndex:(NSInteger)index;

@end
